package br.com.mtg.movethegarbage.framework;

public class FPSCounter
{
	private long time;

	public FPSCounter()
	{
		time = System.currentTimeMillis();
	}

	public long calculateDelta()
	{
		return System.currentTimeMillis() - time;
	}

	public void startCount()
	{
		time = System.currentTimeMillis();
	}

	public int fps(long delta)
	{
		return (int) (1000 / delta);
	}
}
